/**
 * Created by 春旺 on 2017/3/20.
 */
//*************************************************************************************
// GradeReport.java      Java Foundaions
//**************************************************************************************

import java.util.Scanner;

public class GradeReport
{
    //-------------------------------------------------------------------------------------
    // Reads a grade from the user and prints comments accordingly.
    //--------------------------------------------------------------------------------------

    public static void main(String[] args)
    {
     int grade, category;

     Scanner scan = new Scanner(System.in);

     System.out.println ("Enter a numertic grade (0 to 100): ");
     grade = scan.nextInt();

     category = grade / 10;

     System.out.println("That grade is");

     switch (category)
     {
         case 10:
             System.out.println("a perfect score. Well done");
             break;

         case 9:
             System.out.println("well above average. Excellent");
             break;

         case 8:
             System.out.println("above average. Nice jod.");
         case 7:
             System.out.println("average.");
         case 6:
             System.out.println ("below average.Pealse see the ");
             System.out.println ("instructor for assistance.");
     }
    }
}
